<?php


namespace app\admin\model;


class StationModel extends Common
{

    const FIELD = ['id', 'name'];
    /**
     * 员工职位表
     * @var string
     */
    protected $name = 'shop_person_station';

    protected $defaultSoftDelete = 0;

    protected $autoWriteTimestamp = true;

    /**
     * @param int $page
     * @param int $limit
     * @return array
     * @author ran
     * @date 2021-09-23 13:53
     * mailbox 466180170@qq.com
     */
    public function getShopAdminStationListResource(int $page, int $limit=10):array
    {
        $connect = $this->field(self::FIELD);
        return [
            'list' => $connect->page($page, $limit)->select(),
            'dataCount' => $connect->count()
        ];
    }

}